function sendRequest() {
  // Content-Type: multipart/form-data
  const form = document.querySelector('form')
  const formData = new FormData(form)

  const xhr = new XMLHttpRequest()
  xhr.open('POST', 'http://127.0.0.1/api/post/form-data')
  xhr.onreadystatechange = () => {
    if (xhr.readyState === XMLHttpRequest.DONE) {
      if (xhr.status === 200) {
        const res = xhr.response
        console.log(res)
      }
    }
  }
  xhr.send(formData)
}
